package org.jaaksi.util.multiclick;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

public class MyActivity extends Activity implements MultiClickUtil.ClickMulti
{
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		View view = findViewById(R.id.btn);
		new MultiClickUtil(this).setMultiClick(view, 5, 1000);
	}

	@Override
	public void onMultiClick(View view)
	{
		Toast.makeText(this, "彩蛋来了", Toast.LENGTH_SHORT).show();
	}
}
